<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Shopping Cart - Wholesale Electronics from </title>
<link href="../Public/css/cart_2.css" rel="stylesheet" type="text/css">
<link href="../Public/css/index_base.css" rel="stylesheet" type="text/css">
<link href="../Public/css/validatebox.css" media="screen" type="text/css" rel="stylesheet">
<link href="../Public/css/linkbutton.css" media="screen" type="text/css" rel="stylesheet">
<link href="../Public/css/panel.css" media="screen" type="text/css" rel="stylesheet">
<link href="../Public/css/window.css" media="screen" type="text/css" rel="stylesheet">
<link href="../Public/css/messager.css" media="screen" type="text/css" rel="stylesheet">
<load href="./Public/Js/jquery.min.js"/>
</head>
<body>
<div id="page_1">
    <form method="post" action="" name="form1" id="form1">
    <!-- START HEADER -->
    <div class="top_cart">
        <div class="logo">
            <span id="homepage" style="visibility: hidden;" class="homepage">
                Go to homepage</span> <a href="#" >
                    <img src="../Public/images/logo-1.jpg" width="221" height="40"></a>
          <p class="color2" style="text-align: left; padding-left: 10px;">
                <a href="#">Home</a> >> <a href="javascript:;" onclick="window.close();">
                    Continue Shopping</a></p>
        </div>
        
  <div style="padding-top:15px; height:20px; vertical-align:middle; color:#333333; float:right; "> 
  <ul style="float:left;"><li style="float:left;"><img src="../Public/images/sll-icon.png" width="39" height="29" /> </li>
	  	<li style="float:left; width:120px;"><strong>SSL-verschlüsselte Datenübertragung</strong></li> 
		<li style="float:left;"><img src="../Public/images/TS.png" width="37" height="34" /></li> 
		<li style="float:left; width:120px;"><strong>Sicherer Einkauf mit Geld zurück Garantie </strong></li>
  </ul>
  </div>
    </div>
    <div class="clear" style="margin-top:8px;">
    </div>
    <div class="clear">
    </div>
    <!-- END IF USER IS LOGIN -->
    <!-- START PRODUCT LIST -->
    <div class="content_column">
        <div class="title">
          <ul>
                <li class="frist">Produkt ID</li>
                <li class="second">Preis</li>
                <li class="third">Anzahl</li>
                <li class="fourth">Artikel</li>
                <li class="fifth">Einzelpreis</li>
                <li class="sixth">Entfernen</li>
          </ul>
		   <span class="column_title_left"></span><span class="column_title_right"></span>
      </div>
        <div class="column_content">
            <div id="cartlist">
                <span id="lblTableCart">
				<table id="TableCart" style="margin-left: 10px; padding-top:5px;" border="0" cellspacing="0">
				<tbody>
<volist name="a" id="cart">
		<tr class="column_list">
		<td class="one"></td>
		<td class="two"><b>{$cart.productcode}</b></td>
		<td class="three">{$currency} {$cart.price|number_format=###,2}</td>
		<td class="four" style="vertical-align:middle;">
		<input id="num{$cart.productcode}" name="n_{$cart.productcode}"  type="text" size="5" value="{$cart.num}" onChange="ChangeTotal(this);" maxlength="5" />
		<input class="cen" type="image" name="submit" src="../Public/images/button_change.gif" />
		 </td>
		<td class="five"><p>{$cart.pbody}</p></td>
		<td class="six">{$currency} <span id="allprice{$cart.pid}">{$cart.n_price|number_format=###,2}</span></td>
		<td class="seven color2"><a href="?a=delid&pidmo={$cart.productcode}">löschen</a></td>
		</tr>
</volist>
				</tbody>
				</table>
				</span>
            </div>
            <div class="table_bottom" id="Shipping_div" style="">
                <div>
                    <span class="bottom_one">
                        <input name="ckshipping" id="ckshipping" checked="checked" type="checkbox" onclick="
if($('#ckshipping').attr('checked')=='checked'){
	$('#tracking').val(1);
}else{
	$('#tracking').val(0);
}
						">
                    </span>
                    <span class="bottom_two">
                        <b>• Niedrige Preise
• Hohe Qualität der Produkte</b>
                        <p>
                       Neu, 1 Jahr Garantie! 
                        </p>
                    </span>
                    <span class="bottom_three">
                        <span id="Literal1" class="aspNetDisabled">{$currency} {$a_price|number_format=###,2}</span>
                    </span>
                  <span class="bottom_four">
                        <a href="#"><img src="../Public/images/Continue_gy.jpg"  /></a></span>
                        </div>
            </div>
           
    </div>
    <!-- END PRODUCT LIST -->
    <!-- START TRANSPORTATION -->
    <div class="ship_ifo">
        <div class="clear">
        </div>
        <img src="../Public/images/shopping_cart2.jpg" alt="" class="img_left">
        <div class="ship_ifo_left">
            
            <p class="left_p1">
                <label>Transportation-Modus:</label>
                <select id="ListBoxShipping" size="4" onchange="shipping(this.value)">
				<option selected="selected" value="Air Mail,8.00">Air Mail({$currency}8.00)</option>
				<option value="UPS/EMS Express,20.00">UPS/DHL Express({$currency}20.00)</option>
				</select>
            </p>
            <p class="left_p5" id="AirMail_P"><div> 	<li>Schnelle Lieferung </li>
	<li>30 Tage Widerrufsrecht</li>
	<li>Sicher zahlen mit Sofortüberweisung, Kreditkarte, ELV, Giropay, PayPal und Vorkasse, sowie auf Rechnung (nur für Unternehmen)</li> 
	<li>Riesiges Sortiment</li></div></p>
            <div class="left_p6" style="display: none">
                <input id="ckpcode" type="checkbox"><label for="ckpcode">Use Coupon</label>
                <div id="pCoupon" style="display: none; height: auto;">
                    <div>
                        <input class="text_t" id="txtCoupon" onclick="this.value=''" type="text">
                        <input value="" class="text_i" onclick="javascript:couponOrder()" type="button"></div>
                </div>
                <div style="padding-left: 0px; height: auto; line-height: 16px;">
                    <table cellpadding="0" cellspacing="0">
                        <tbody><tr>
                            <td style="width: 20px; vertical-align: top;">
                                <input id="cbDropShipping" type="checkbox">
                            </td>
                            <td style="font-size: 11px;">
                                <label for="cbDropShipping">
                                    Drop Shipping(Removes PickEgg logo from package. You can edit order shipping address
                                    on the page of order successful payment.)</label>
                            </td>
                        </tr>
                    </tbody></table>
                </div>
                <p style="display: none">
                </p>
            </div>
            <!-- yhc -->
            <span id="spcoupon"></span>
</div>
        <div class="ship_ifo_right">
            <br style="display: none" id="btu">
            <div class="prouct_sub">
                <p>
                    <label>
                        Versand:</label>
                    <span id="LiteralShippingSubtotal">{$currency} 8.00</span>
                </p>
                <p>
                    <label>
                        Produkt:</label>
                    <span id="LiteralProductSubtotal">{$currency} {$a_price|number_format=###,2}</span>
                </p>
              
            </div>
            <div class="clear">
            </div>
            <div class="ship_total Currencies" id="ship_total">
                Endbetrag:
                <span id="LiteralGrandTotal"><span class="font_16 underline">{$currency}</span> <span class="font_16" id="total_js">{$a_price+8|number_format=###,2}</span></span>
                <div class="Currencies_list divmove" style="display: none" id="div_Currencies_list">
                    <p id="USD">USD</p>
                    <p id="EUR">EUR</p>
                    <p id="GBP">GBP</p>
                    <p id="AUD">AUD</p>
                    <p id="CAD">CAD</p>
                </div>
            </div>
            
            <div class="clear">
			<input type="hidden" name="mo_b" id="mo_b" value="{$a_price|number_format=###,2}" />
			<input type="hidden" name="mo_b" id="mo_bb" value="{$a_price|number_format=###,2}" />
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <!-- END TRANSPORTATION -->

    <div class="clear">
	
    </div>
    <!-- START CHOOSE PAY -->
    <!-- END CHOOSE PAY -->
    <div class="clear">
    </div>
    <!-- START FOOTER -->
    <!-- END FOOTER -->
    
 <script type="text/javascript">

function ChangeTotal(num)
{	var a=parseInt($(num).val());
	if(!isNaN(a))
	{
		if(a<1)
		{
			$(num).val(1);
		}else
		{
			$(num).val(a);
		}
	}else{
		$(num).val(1);
	}
	$("#form1").submit(); 
}

function shipping(val){
str=val.split(",");
$('#transportation').val(str[0]);
$('#logisticsprice').val(str[1]);
$('#LiteralShippingSubtotal').html('{$currency} '+str[1]);
mo_bb=$('#mo_bb').val();
reg=/,/gi;
mo_bb=mo_bb.replace(reg,'');
str[1]=parseFloat(mo_bb)+parseFloat(str[1]);
str[1]=str[1].toFixed(2);
str[1]=CommaFormatted(str[1]);
$('#LiteralProductSubtotal').html('{$currency} '+str[1]);
$('#mo_b').val(str[1]);
$('#total_js').html($('#mo_b').val());
}

function CommaFormatted(amount) {
    var delimiter = ",";
    amount = new String(amount);
    var a = amount.split('.',2)
    var d = a[1];
    var i = parseInt(a[0]);
    if(isNaN(i)) { return ''; }
    var minus = '';
    if(i < 0) { minus = '-'; }
    i = Math.abs(i);
    var n = new String(i);
    var a = [];
    while(n.length > 3)
    {
        var nn = n.substr(n.length-3);
        a.unshift(nn);
        n = n.substr(0,n.length-3);
    }
    if(n.length > 0) { a.unshift(n); }
    n = a.join(delimiter);
    if(d.length < 1) { amount = n; }
    else { amount = n + '.' + d; }
    amount = minus + amount;
    return amount;
}

</script>
<style>
a.totalprice{text-decoration:none;color:#e56621;cursor:text;}

</style>
</div>

 </form>
 </div>

 
 <div>
    <div class="choose_pay">
        
       
     <form method="post" action="?m=Index&a=sendorder" id="form11">
    <!-- START HEADER -->
    

    <div class="content_column">
	<p class="title">
            Adreßangaben        </p>
 <div class="pay_content">
    <div class="ship_ifo2">
        <TABLE width="90%" bgcolor="#ffdec4" align="center">
                          <TBODY bgcolor="#FFFFFF">
                          <TR>
                            <TD width="26%" align=middle bgcolor="#e4e3e3"><STRONG>Vorname:</STRONG></TD>
                            <TD bgColor=#f4f4f4 width="74%"><input type="text" name="first_name" />&nbsp;&nbsp;<FONT 
                              color=#ff0000>*</FONT> </TD></TR>
                          <TR>
                            <TD align=middle><STRONG>Nachname:</STRONG></TD>
                            <TD bgColor=#ffffff height=13><input type="text" name="last_name" />&nbsp;&nbsp;<FONT 
                              color=#ff0000>*</FONT></TD></TR>
                          <TR bgColor=#f4f4f4>
                            <TD align=middle><STRONG>Firmenname:</STRONG></TD>
                            <TD bgColor=#cccccc height=14><INPUT maxLength=35 
                              size=25 name=client_companyship> </TD></TR>
                          <TR>
                            <TD bgColor=#ffffff 
                              align=middle><STRONG>Straße und Hausnummer:</STRONG></TD>
                            <TD bgColor=#ffffff height=28><input type="text" name="address1" size="60" />
                            <FONT 
                              color=#ff0000>*</FONT></TD>
                          </TR>
                          <TR bgColor=#9dbdda>
                            <TD bgColor=#A5E8FA 
                              align=middle><STRONG>Zusatzinformationen
(optional)
</STRONG></TD>
                            <TD bgColor=#D6F6FF height=28><input type="text" name="address2" />&nbsp;&nbsp;</TD></TR>
            <TD align=middle><STRONG>Postleitzahl:</STRONG></TD>
                            <TD height=28><input type="text" name="zip" />&nbsp;&nbsp;<FONT 
                              color=#ff0000>*</FONT></TD></TR>
							   <TR>
                            <TD bgColor=#ffffff 
                              align=middle><STRONG>Ort:</STRONG></TD>
                            <TD bgColor=#ffffff height=28><input type="text" name="city" />&nbsp;&nbsp;<FONT 
                              color=#ff0000>*</FONT></TD></TR>

                          <TR>
                            <TD align=middle><STRONG>Telefon: </STRONG></TD>
                            <TD height=28><INPUT size=5 type="text" name="night_phone_a"> <INPUT size=6 type="text" name="night_phone_b"> <INPUT size=6 type="text" name="night_phone_c">&nbsp;&nbsp;<FONT 
                              color=#ff0000>* Erforderlich! Liefer-Informationen mitteilen</FONT></TD></TR>
                          <TR bgColor=#eaecfc>
                            <TD bgColor=#eaecfc 
                              align=middle><STRONG>e-Mail:</STRONG></TD>
                            <TD height=28><input type="text" name="email" />&nbsp;&nbsp;<FONT 
                              color=#ff0000>* Erforderlich! Liefer-Informationen mitteilen</FONT></TD></TR><TR>
                            <TD width="248" align=middle><STRONG>Bemerkung:</STRONG></TD>
                            <TD width="718" height=28><TEXTAREA rows=5 cols=60 name=client_remark></TEXTAREA></br></TD>
                            </TR></TBODY></TABLE>
                              
			<input type="hidden" name="tracking" id="tracking" value="1" />
			<input type="hidden" name="destination" id="destination" value="Afghanistan" />
			<input type="hidden" name="transportation" id="transportation" value="Air Mail" />
			<input type="hidden" name="logisticsprice" id="logisticsprice" value="8" />
			<input type="hidden" name="domain" id="domain" value="{@a.domain}" />
    </div><div class="ship_ifo1"><input type="image" src="../Public/images/next_step.jpg" align="center"/> </div>
</div>
 
 
</form></div></div>
<div class="foot_cart">
        <div class="foot_fontcart">
            <p>
                Alle Preise in EURO inklusive der gesetzlichen Umsatzsteuer zuzüglich anfallender Versand- und Zahlungskosten. Alle Angebote sind freibleibend. Irrtümer und Änderungen vorbehalten. Alle genannten Namen, Marken und Logos sind Eigentum der jeweiligen Inhaber. ©2004-2011</p>
            <p style="margin-top: 20px;">
                </p>
        </div>
    </div>
</div>

 </body></html>   <?php 
 $_SESSION['thanks']['jumpUrl']='http://www.pcakkus.com'; //支付完成跳转的页面
  $_SESSION['thanks']['success']='payment success'; //支付成功提示
   $_SESSION['thanks']['error']='payment fail'; //支付失败提示
 ?>